﻿/* 点卷商店 */

var status = 0;

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
        var selStr = "#fUI/UIWindow2.img/Quest/quest_info/summary_icon/summary#\r\n#fUI/UIWindow2.img/QuestAlarm/BtQ/normal/0#亲爱的管理员#r#h ##k您好，请您选择您需要的功能:\r\n#b#L0#修改属性#l    #L1#加满技能#l   #L2# 自由市场#l"; //\r\n#b#L3#伤害皮肤#l    #b#L4#特效戒指#l     #b#L5#购买神宠#l\r\n#b#L6#时装商铺#l    #L7#极品椅子#l     //#L8#极品坐骑#l 
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
            cm.dispose();
            cm.openNpc(9310607, "glyxgzb"); //管理员修改装备
            break;
        case 1:
		//cm.sendOk("请到鲁彪那去买吧，我这里都没货了~");
            cm.dispose();
            cm.openNpc(9310607, "mjn111"); //满技能
            break;
        case 2:
            cm.dispose();
            cm.warp(910000000,0);//双倍道具
            break;
        case 3:
            cm.dispose();
            cm.openNpc(9010047, "shpf");
            break;
        case 4:
            cm.dispose();
            cm.openNpc(9310470,"txjz");
            break;
        case 5:
		//cm.sendOk("请到鲁彪那去买吧，我这里都没货了~");
            cm.dispose();
            cm.openNpc(9310470,"0");
            break;
        case 6:
            cm.dispose();
            cm.openNpc(9310555,"haohuasp");
            break;
	case 7:
            cm.dispose();
            cm.openNpc(1032205,"111"); //破攻石头
            break;
	case 8:
            cm.dispose();
            cm.openNpc(1032206,"jpzj"); //一键潜能
            break;
        }
    }
}